<?php if ($pager->haveToPaginate()): ?>
<div class="pagination">
  <a href="<?php echo url_for($name) ?>?page=1"><<</a>

  <a href="<?php echo url_for($name) ?>?page=<?php echo $pager->getPreviousPage() ?>"><</a>

    <?php foreach ($pager->getLinks() as $page): ?>
      <?php if ($page == $pager->getPage()): ?>
        <?php echo $page ?>
      <?php else: ?>
  <a href="<?php echo url_for($name) ?>?page=<?php echo $page ?>"><?php echo $page ?></a>
      <?php endif; ?>
    <?php endforeach; ?>

  <a href="<?php echo url_for($name) ?>?page=<?php echo $pager->getNextPage() ?>">
    >
  </a>

  <a href="<?php echo url_for($name) ?>?page=<?php echo $pager->getLastPage() ?>">
    >>
  </a>
</div>
<?php endif; ?>

<?php if ($pager->haveToPaginate()): ?>
<div class="pagination_desc">
  <strong><?php echo $pager->getNbResults() ?></strong> <?php echo $name ?> showing


  - page <strong><?php echo $pager->getPage() ?>/<?php echo $pager->getLastPage() ?></strong>

</div>
<?php endif; ?>